﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace KPIS.GERP.WEB.GAMS.Classes
{ 
	public static class ConvertOrDefault
	{
		public static bool StringToBool(string str)
		{
			bool result;
			bool success = Boolean.TryParse(str, out result);
			return success && result;
		}

		public static int StringToInt(string str)
		{
			int result;
			Int32.TryParse(str, out result);
			return result;
		}
	}
}